package it.unipd.fbaron.mind_reader_squared.model;

import java.util.Date;

import android.text.format.DateFormat;

public class ProfileDAO {

	private int ID = -1;
	private String password = "";
	private String firstName = "";
	private String lastName = "";
	private Date birthDate = new Date();
	private String language = "it";
	private int preferredMod = DataBaseHelper.M1;
	private Date registrationDate = new Date();
	private String preferredLanguage = "it";
	private String preferredTts = "it";
	private int rating = 0;
	private int openM2 = 0;
	private int openM3 = 1;
	private int readAll = 0;
	private int virtualDpad = 0;
	private int inputLeft = DataBaseHelper.INPUT_KEY_RIGHT_CLICK;
	private int inputRight = DataBaseHelper.INPUT_KEY_LEFT_CLICK;
	private int inputSelect = DataBaseHelper.INPUT_MOUSE_CLICK;

	public ProfileDAO(int ID, String password, String firstName,
			String lastName, Date birthDate, String locale, int preferredMod,
			Date registrationDate) {
		this.ID = ID;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.birthDate = birthDate;
		this.language = locale;
		this.preferredMod = preferredMod;
		this.registrationDate = registrationDate;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public int getPreferredMod() {
		return preferredMod;
	}

	public void setPreferredMod(int preferredMod) {
		this.preferredMod = preferredMod;
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public int getID() {
		return ID;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getPreferredLanguage() {
		return preferredLanguage;
	}

	public void setPreferredLanguage(String preferredLanguage) {
		this.preferredLanguage = preferredLanguage;
	}

	public String getPreferredTts() {
		return preferredTts;
	}

	public void setPreferredTts(String preferredTts) {
		this.preferredTts = preferredTts;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public int getOpenM2() {
		return openM2;
	}

	public void setOpenM2(int openM2) {
		this.openM2 = openM2;
	}

	public int getOpenM3() {
		return openM3;
	}

	public void setOpenM3(int openM3) {
		this.openM3 = openM3;
	}

	public int getReadAll() {
		return readAll;
	}

	public void setReadAll(int readAll) {
		this.readAll = readAll;
	}

	public int getVirtualDpad() {
		return virtualDpad;
	}

	public void setVirtualDpad(int virtualDpad) {
		this.virtualDpad = virtualDpad;
	}

	public int getInputLeft() {
		return inputLeft;
	}

	public void setInputLeft(int inputLeft) {
		this.inputLeft = inputLeft;
	}

	public int getInputRight() {
		return inputRight;
	}

	public void setInputRight(int inputRight) {
		this.inputRight = inputRight;
	}

	public int getInputSelect() {
		return inputSelect;
	}

	public void setInputSelect(int inputSelect) {
		this.inputSelect = inputSelect;
	}

	@Override
	public String toString() {
		return firstName + " " + lastName + "  ("
				+ DateFormat.format("dd/MM/yyyy", birthDate) + ")";
	}

}
